<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('慢病报销列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li>
                                <label>医院发票号：</label>
                                <input type="text" name="mrNumber"/>
                            </li>
                            <li>
                                <label>预报销金额：</label>
                                <input type="text" name="beforeFee"/>
                            </li>
                            <li>
                                <label>实际报销金额：</label>
                                <input type="text" name="actualFee"/>
                            </li>
                            <li>
                                <label>参合农民身份证号：</label>
                                <input type="text" name="idCard"/>
                            </li>
                            <li>
                                <label>领款时间：</label>
                                <input type="text" class="time-input" placeholder="请选择领款时间" name="miTime"/>
                            </li>
                            <li>
                                <label>操作员：</label>
                                <input type="text" name="miPerson"/>
                            </li>
                            <li>
                                <label>姓名：</label>
                                <input type="text" name="name"/>
                            </li>
                            <li>
                                <label>性别：</label>
                                <select name="sex">
                                    <option value="">所有</option>
                                    <option value="-1">代码生成请选择字典属性</option>
                                </select>
                            </li>
                            <li>
                                <label>农合证号：</label>
                                <input type="text" name="nonghecard"/>
                            </li>
                            <li>
                                <label>地址：</label>
                                <input type="text" name="address"/>
                            </li>
                            <li>
                                <label>疾病名称：</label>
                                <input type="text" name="illness"/>
                            </li>
                            <li>
                                <label>累计报销金额：</label>
                                <input type="text" name="mubFee"/>
                            </li>
                            <li>
                                <label>年度：</label>
                                <input type="text" name="year"/>
                            </li>
                            <li>
                                <label>乡镇农合办经办人审批：</label>
                                <input type="text" name="approvalXz"/>
                            </li>
                            <li>
                                <label>县农经办人汇款审批：</label>
                                <input type="text" name="approvalXn"/>
                            </li>
                            <li>
                                <label>报销时间：</label>
                                <input type="text" class="time-input" placeholder="请选择报销时间" name="reimbursementTime"/>
                            </li>
                            <li>
                                <label>乡镇农合办经办人审批时间：</label>
                                <input type="text" class="time-input" placeholder="请选择乡镇农合办经办人审批时间" name="approvalXzTime"/>
                            </li>
                            <li>
                                <label>县农经办人汇款审批时间：</label>
                                <input type="text" class="time-input" placeholder="请选择县农经办人汇款审批时间" name="approvalXnTime"/>
                            </li>
                            <li>
                                <label>报销编号：</label>
                                <input type="text" name="reimbursementNumber"/>
                            </li>
                            <li>
                                <label>办理时间：</label>
                                <input type="text" class="time-input" placeholder="请选择办理时间" name="handleTime"/>
                            </li>
                            <li>
                                <label>行政区域：</label>
                                <input type="text" name="area"/>
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">
                <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:recompense:add">
                    <i class="fa fa-plus"></i> 添加
                </a>
                <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:recompense:edit">
                    <i class="fa fa-edit"></i> 修改
                </a>
                <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:recompense:remove">
                    <i class="fa fa-remove"></i> 删除
                </a>
                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:recompense:export">
                    <i class="fa fa-download"></i> 导出
                </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('system:recompense:edit')}]];
        var removeFlag = [[${@permission.hasPermi('system:recompense:remove')}]];
        var prefix = ctx + "system/recompense";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "慢病报销",
                columns: [{
                    checkbox: true
                },
                {
                    field: 'medInfoId',
                    title: '自增主键',
                    visible: false
                },
                {
                    field: 'mrNumber',
                    title: '医院发票号'
                },
                {
                    field: 'beforeFee',
                    title: '预报销金额'
                },
                {
                    field: 'actualFee',
                    title: '实际报销金额'
                },
                {
                    field: 'idCard',
                    title: '参合农民身份证号'
                },
                {
                    field: 'miTime',
                    title: '领款时间'
                },
                {
                    field: 'miPerson',
                    title: '操作员'
                },
                {
                    field: 'name',
                    title: '姓名'
                },
                {
                    field: 'sex',
                    title: '性别'
                },
                {
                    field: 'nonghecard',
                    title: '农合证号'
                },
                {
                    field: 'address',
                    title: '地址'
                },
                {
                    field: 'illness',
                    title: '疾病名称'
                },
                {
                    field: 'mubFee',
                    title: '累计报销金额'
                },
                {
                    field: 'year',
                    title: '年度'
                },
                {
                    field: 'approvalXz',
                    title: '乡镇农合办经办人审批'
                },
                {
                    field: 'approvalXn',
                    title: '县农经办人汇款审批'
                },
                {
                    field: 'reimbursementTime',
                    title: '报销时间'
                },
                {
                    field: 'approvalXzTime',
                    title: '乡镇农合办经办人审批时间'
                },
                {
                    field: 'approvalXnTime',
                    title: '县农经办人汇款审批时间'
                },
                {
                    field: 'reimbursementNumber',
                    title: '报销编号'
                },
                {
                    field: 'handleTime',
                    title: '办理时间'
                },
                {
                    field: 'area',
                    title: '行政区域'
                },
                {
                    title: '操作',
                    align: 'center',
                    formatter: function(value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.medInfoId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.medInfoId + '\')"><i class="fa fa-remove"></i>删除</a>');
                        return actions.join('');
                    }
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>